package com.example.create.service;

import com.zxf.orderservice.feign.CreateService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CreateServiceImpl implements CreateService {

    @PostMapping("/credit/add/{userId}/{creditCount}")
    public String addCredit(@PathVariable("userId")Long userId,
                     @PathVariable("creditCount")Integer creditCount) {
        System.out.println("用户ID="+userId+":增加积分"+creditCount);
        return null;
    }
}
